/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package BUS;

import DAO.DBConnect;
import DTO.Ghe;
import DAO.GheDAO;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;

/**
 *
 * @author PC
 */
public class GheBUS {
     public static ResultSet  TimKiemTatCa() {
        return GheDAO.TimKiemTatCa();
    }
     public static boolean KiemTraTonTai(String MaNV)
    {
        return GheDAO.KiemTraTonTai(MaNV);
    }
     
     public static Ghe Get(String sohieu, String toa)
     {
         return GheDAO.Get(sohieu, toa);
     }
       public static ResultSet TimGheCuaToa(String MaToa)
    {
       return DAO.GheDAO.TimGheCuaToa(MaToa);
    }
      public static boolean UpdateTinhTrang(String maghe, String toa,int tinhtrang)
    {
        return DAO.GheDAO.UpdateTinhTrang(maghe, toa, tinhtrang);
    }
     public static boolean Them(Ghe n) {
         return GheDAO.Them(n);
     }
    public static boolean Xoa(String id) {
         return GheDAO.Xoa(id);
     }
     public static boolean Update(Ghe NV,String id){
          return GheDAO.Update(NV,id);
     }
}
